// Copyright (c) RealCoolEngineer. 2025. All rights reserved.
// Author: ClingYang
// https://clingyang.github.io/
// Date: 2025-06-30
// Version: 1.0
#ifndef  __BSP_SPI_H__
#define  __BSP_SPI_H__

#ifdef __cplusplus
extern "C" {
#endif
/*********************************************************************
* INCLUDES
*/
#include "main.h"


/*********************************************************************
* API FUNCTIONS
*/
extern DMA_HandleTypeDef HdmaCh1; 
extern SPI_HandleTypeDef hspi2;
void bsp_spi2_init(void);
void bsp_spi2_transmit_dma(uint8_t *pTxData, uint16_t Size);


#ifdef __cplusplus
}
#endif

#endif  /*__BSP_SPI_H__*/
